package com.yuwen.yuwenRPC.fault;

import com.yuwen.yuwenRPC.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @ClassNameNoRetryStrategy
 * @Description TODO
 * @Author钰玟
 * @Date2025/4/6 上午10:35
 * @Version 1.0
 **/


/**
 * 不重试 的重试机制
 */
public class NoRetryStrategy implements RetryStrategy{


    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {
        return callable.call();
    }
}
